package com.interview.javabasic.thread;

public class ThreadTest {
    private static void attack(){
        System.out.println("Fight!");
        System.out.println("Current Thread is : " + Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        Thread t = new Thread(){
            public void run(){
                attack();
            }
        };
        System.out.println("Current main Thread is :" + Thread.currentThread().getName());
        t.start();
    }
}
